#include "Fan.h"

/*宏定义*/
#define FAN_IO 17

/*全局变量*/
volatile uint8_t fan_switch = 0;//风扇开关标志 0--关闭 1--开启
extern volatile uint8_t manual_open_fan_flag;

/*全局函数*/
void Fan_Init(void)
{
    pinMode(FAN_IO, OUTPUT);

    digitalWrite(FAN_IO, HIGH);

    Serial.println("Fan_Init success");
}

void Fan_Open(void)
{
    digitalWrite(FAN_IO, LOW);

    Serial.println("Fan_Open");
}

void Fan_Close(void)
{
    digitalWrite(FAN_IO, HIGH);

    Serial.println("Fan Close");
}